package com.jzo2o.customer.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务人员认证信息表
 * </p>
 *
 * @author itcast
 * @since 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("worker_certification")
@ApiModel(value="WorkerCertification对象", description="服务人员认证信息表")
public class WorkerCertification implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务人员id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_card_no")
    private String idCardNo;

    @ApiModelProperty(value = "身份证正面")
    @TableField("front_img")
    private String frontImg;

    @ApiModelProperty(value = "身份证反面")
    @TableField("back_img")
    private String backImg;

    @ApiModelProperty(value = "证明资料")
    @TableField("certification_material")
    private String certificationMaterial;

    @ApiModelProperty(value = "认证状态，0：初始态，1：认证中，2：认证成功，3认证失败")
    @TableField("certification_status")
    private Integer certificationStatus;

    @ApiModelProperty(value = "认证时间")
    @TableField("certification_time")
    private LocalDateTime certificationTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
